projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b7fcc
)
Allow non-float values in x-scroll-event-delta-factor
author
Po Lu
<luangruo@yahoo.com>
Tue, 30 Nov 2021 01:46:25 +0000
(09:46 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Tue, 30 Nov 2021 01:46:25 +0000
(09:46 +0800)
* src/xterm.c (handle_one_xevent): Use XFLOATINT instead of
XFLOAT_DATA.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index a6d9c8c7a1b0fa639051e552fffa2a634c4f50db..ed6a31125c935897790afab64008d4b31fa6bb32 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-10045,8
+10045,8
@@
handle_one_xevent (struct x_display_info *dpyinfo,
scroll_unit = pow (FRAME_PIXEL_HEIGHT (f), 2.0 / 3.0);
- if (
FLOAT
P (Vx_scroll_event_delta_factor))
- scroll_unit *= XFLOAT
_DATA
(Vx_scroll_event_delta_factor);
+ if (
NUMBER
P (Vx_scroll_event_delta_factor))
+ scroll_unit *= XFLOAT
INT
(Vx_scroll_event_delta_factor);
if (val->horizontal)
{